package com.yanjingzheng.entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/9/12 16:41
 * @Description 圆形实体类
 **/
public class Circle implements Shape {

    private String color;
    private int x;
    private int y;
    private int redius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRedius(int redius) {
        this.redius = redius;
    }

    @Override
    public void draw() {
        System.out.println("cicle:[color:" + color + ",x=" + x + ",y=" + y + ",radius=" + redius + "]");
    }
}
